package com.hxkj.service.article;

import com.hxkj.domain.po.Channel;
import com.hxkj.domain.po.FreeMarker;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;

import java.util.List;

/**
 * @InterfaceName ChannelService
 * @Description TODO
 * @Author Mr.zheng
 * @Date 2018/6/7 11:59
 * @Version 1.0
 */
public interface ChannelService {

    /**
     * @author Mr.zheng
     * @Description saveChannel 新增频道
     * @Date 17:56 2018/6/7
     **/
    void saveChannel(Channel channel) throws Exception;

    /**
     * @author Mr.zheng
     * @Description getChannelList 获取频道列表
     * @Date 17:58 2018/6/7
     **/
    ResultPageStruct<Channel> getChannelList(Channel channel, PageTo pageParam) throws Exception;

    /**
     * @author Mr.zheng
     * @Description removerColumn 删除频道
     * @Date 17:59 2018/6/7
     **/
    void removeChannel(Channel channel) throws Exception;

    /**
     * @author Mr.zheng
     * @Description modifyChannel 修改频道
     * @Date 18:14 2018/6/7
     **/
    void modifyChannel(Channel channel) throws Exception;

    /**
     * @author Mr.zheng
     * @Description modifyChannel
     * @Date 18:14 2018/6/7
     **/
    List<Channel> getAllChannel(FreeMarker freeMarker);


    /**
     * 查询频道
     **/
    List<Channel> getChannelList(Channel channel);
}
